package cn.kgc.tangcco.tcbd1011.no13.vehicletype.service.impl;

import java.util.List;

import cn.kgc.tangcco.tcbd1011.no13.base.properties.factory.PropertiesFactory;
import cn.kgc.tangcco.tcbd1011.no13.base.util.Utils;
import cn.kgc.tangcco.tcbd1011.no13.vehicletype.dao.VehicleTypeDao;
import cn.kgc.tangcco.tcbd1011.no13.vehicletype.entity.VehicleType;
import cn.kgc.tangcco.tcbd1011.no13.vehicletype.service.VehicleTypeService;
import cn.kgc.tangcco.tcbd1011.no13.vehicletype.vo.VehicleTypeVo;

public class VehicleTypeServiceImpl  implements VehicleTypeService {
		private VehicleTypeDao vtDao ;
		public VehicleTypeServiceImpl() {
			vtDao = (VehicleTypeDao) PropertiesFactory.getInstance(Utils.VEHICLETYPEDAO);
		}
	@Override
	public List<VehicleTypeVo> queryAllVehicleType(VehicleTypeVo vehicleType) {
		
		return vtDao.queryAllVehicleType(vehicleType);
	}

	@Override
	public List<VehicleTypeVo> queryVehicleTypeToVehicle(VehicleTypeVo vehicleType) {
		return vtDao.queryVehicleTypeToVehicle(vehicleType);
	}

	@Override
	public VehicleTypeVo detailVehicleType(int pk) {
		return vtDao.detailVehicleType(pk);
	}

	@Override
	public int queryCountVehicleType() {
		return vtDao.queryCountVehicleType();
	}

	@Override
	public int addVehicleType(VehicleType vehicleType) {
		return vtDao.addVehicleType(vehicleType);
	}

	@Override
	public int updateVehicleType(VehicleType vehicleType) {
		return vtDao.updateVehicleType(vehicleType);
	}

	@Override
	public int deleteVehicleType(int pk) {
		return vtDao.deleteVehicleType(pk);
	}

}
